package com.me.learnspring.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Goods {
	Integer count;
	Object goods;
	
	public void increase(){
		count++;
	}
	
	public boolean decrease(){
		if (count < 2) {
			return false;
		}
		count--;
		return true;
	}
}
